ALMaSS  1.0
The Animal, Landscape and Man Simulation System
CfgBool Class Reference

Bool configurator entry class. More...

#include <configurator.h>

Inheritance diagram for CfgBool:
CfgBase

Public Member Functions

 CfgBool (const char *a_key, CfgSecureLevel a_level, bool a_defval)
 
bool value (void)
 
void set (bool a_newval)
 
virtual CfgType gettype (void)
 
- Public Member Functions inherited from CfgBase
 CfgBase (const char *a_key, CfgSecureLevel a_level)
 
virtual ~CfgBase (void)
 
const string getkey (void)
 
CfgSecureLevel getlevel (void)
 

Protected Attributes

bool m_bool
 
- Protected Attributes inherited from CfgBase
string m_key
 
CfgSecureLevel m_level
 
bool m_rangetest
 

Detailed Description

Bool configurator entry class.

Constructor & Destructor Documentation

◆ CfgBool()

CfgBool::CfgBool ( const char *  a_key,
CfgSecureLevel  a_level,
bool  a_defval 
)
151  :CfgBase( a_key, a_level )
152 {
153  m_bool = a_defval;
154 }
CfgBase(const char *a_key, CfgSecureLevel a_level)
Definition: configurator.cpp:73
bool m_bool
Definition: configurator.h:130

References m_bool.

Member Function Documentation

◆ gettype()

virtual CfgType CfgBool::gettype ( void  )
inlinevirtual

Reimplemented from CfgBase.

137 { return CFG_BOOL; }
@ CFG_BOOL
Definition: configurator.h:55

References CFG_BOOL.

◆ set()

void CfgBool::set ( bool  a_newval)
inline
136 { m_bool = a_newval; }

◆ value()

bool CfgBool::value ( void  )
inline
135 { return m_bool; }

Referenced by OptimisingFarm::ActualProfit(), Landscape::AddBeetleBanks(), OptimisingFarm::assignFixed(), Vole_JuvenileMale::BeginStep(), Vole_JuvenileFemale::BeginStep(), Rabbit_Base::BeginStep(), Landscape::BorderScan(), Pond::CalcPondPesticide(), Landscape::CheckForPesticideRecord(), OptimisingFarm::checkRestrictions(), OptimisingPigFarm::checkRestrictions(), OptimisingCattleFarm::checkRestrictions(), AnimalFarm::checkWinterCrops(), NonAnimalFarm::checkWinterCrops(), AnimalFarm::checkWinterRotation1(), NonAnimalFarm::checkWinterRotation1(), OptimisingFarm::ChooseDecisionMode(), Crop::ChooseNextCrop(), Population_Manager::CloseTheRipleysOutputProbe(), AnimalFarm::correctFodderDemand(), FarmManager::CreateFarms(), AnimalFarm::createFodderCrops(), OptimisingFarm::createVariableCrops(), FarmManager::CropDistribution(), DataForOptimisation::DataForOptimisation(), AnimalFarm::decreaseCrops(), OptimisingFarm::determineAreas(), AnimalFarm::determineFodderAreas(), AnimalFarm::determineMinFodder(), Vole_JuvenileMale::Dispersal(), Vole_Male::Dispersal(), Vole_JuvenileFemale::Dispersal(), Goose_Population_Manager::DoEmigration(), Vole_Population_Manager::DoFirst(), Goose_Population_Manager::DoImmigration(), Goose_Population_Manager::DoLast(), Bembidion_Population_Manager::DoLast(), Configurator::DumpSymbols(), Landscape::DumpVegAreaData(), Vole_Male::EndStep(), Vole_JuvenileFemale::EndStep(), Hare_Young::EndStep(), Hare_Juvenile::EndStep(), Hare_Male::EndStep(), Hare_Female::EndStep(), OptimisingFarm::FarmLevelCalculation(), FarmManager::FarmManager(), OptimisingFarm::findBIs(), OptimisingFarm::findFertilizer(), OptimisingFarm::findFodderDemand(), OptimisingFarm::findGrossMargin(), OptimisingFarm::findMWeedControl(), OptimisingFarm::findResponse(), OptimisingFarm::findTotalArea(), OptimisingFarm::findTotalNanim(), OptimisingFarm::findYieldLoss(), OptimisingFarm::fixBI(), OptimisingFarm::FungicideTreat(), Farm::GetFirstCropIndex(), Farm::GetNextCropIndex(), Farm::GetNextCropStartDate(), Goose_Population_Manager::Goose_Population_Manager(), Goose_Population_Manager::GooseFieldForageInfoOutput(), Farm::HandleEvents(), OptimisingFarm::HandleEvents(), OptimisingFarm::Harvest(), Farm::HerbicideTreat(), OptimisingFarm::HerbicideTreat(), Hunter_Population_Manager::Hunter_Population_Manager(), Partridge_Population_Manager::HuntingDifferentiatedBeetleBankArea(), THare_Population_Manager::HuntingDifferentiatedBeetleBankArea(), AnimalFarm::increaseCrops(), THare_Population_Manager::Init(), OptimisingFarm::Init(), Bembidion_Population_Manager::Init(), Goose_Population_Manager::Init(), Hunter_Population_Manager::Init(), Partridge_Population_Manager::Init(), RoeDeer_Population_Manager::Init(), Skylark_Population_Manager::Init(), Vole_Population_Manager::Init(), RasterMap::Init1(), FarmManager::InitFarms(), OptimisingFarm::Initialize(), Farm::InitiateManagement(), Farm::InsecticideTreat(), OptimisingFarm::InsecticideTreat(), Landscape::Landscape(), main(), OptimisingFarm::Make_rotations(), Partridge_Covey::ManagerDriftPos(), Partridge_Covey::ManagerRethinkPos(), OptimisingFarm::Match_crop_to_field(), Newt_Population_Manager::Newt_Population_Manager(), Vole_JuvenileMale::OnFarmEvent(), Vole_JuvenileFemale::OnFarmEvent(), Vole_JuvenileMale::OnKilled(), Vole_JuvenileFemale::OnKilled(), GooseHunter::OnShotABird(), FarmManager::OptimisationOutput(), OptimisingFarm::optimizeCrops(), Pesticide::Pesticide(), PollenNectarDevelopmentData::PollenNectarDevelopmentData(), Pond::Pond(), Population_Manager::Population_Manager(), Rabbit_Population_Manager::PreProcessWarrenLocations(), FarmManager::PrintOutput(), Farm::ProductApplication(), Rabbit_Population_Manager::Rabbit_Population_Manager(), RasterMap::RasterMap(), FarmManager::ReadCropsData_perFarm_and_Soil_and_Size_almass(), Landscape::ReadPolys2(), Vole_Population_Manager::ResistanceOutput(), RodenticidePredators_Population_Manager::RodenticidePredators_Population_Manager(), Population_Manager::Run(), TPredator_Population_Manager::Run(), OptimisingCattleFarm::setCattleCropsAtMin(), Configurator::SetCfgGatekeeper(), Landscape::SimulationClosingActions(), OptimisingFarm::Spraying_fungins(), OptimisingFarm::Spraying_herbicides(), Rabbit_Female::st_Dying(), Hare_Young::st_Foraging(), Hare_Juvenile::st_Foraging(), Hare_Male::st_Foraging(), Hare_Female::st_Foraging(), Skylark_Female::st_Laying(), Vole_JuvenileFemale::Step(), Vole_Female::Step(), Vole_Population_Manager::SuitableStartingLocation(), Landscape::SupplyPesticide(), Landscape::SupplyPesticideP(), Landscape::SupplyPesticideS(), Landscape::SupplyRodenticide(), Landscape::Tick(), Pesticide::Tick(), Rabbit_Warren::UpdateForageInformation(), VegElement::VegElement(), Goose_Population_Manager::WriteConfig(), FarmManager::~FarmManager(), Goose_Population_Manager::~Goose_Population_Manager(), Hunter_Population_Manager::~Hunter_Population_Manager(), Landscape::~Landscape(), Pesticide::~Pesticide(), Population_Manager::~Population_Manager(), Rabbit_Population_Manager::~Rabbit_Population_Manager(), and Vole_Population_Manager::~Vole_Population_Manager().

Member Data Documentation

◆ m_bool

bool CfgBool::m_bool
protected

Referenced by CfgBool().


The documentation for this class was generated from the following files: